package cn.edu.sgu.www.mhxysy.dto.system;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class UserMenuDTO implements DataTransferObject {

    /**
     * 排序号
     */
    @NotNull(message = "排序号" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "排序号", required = true)
    private Integer pxh;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private String userId;

    /**
     * 菜单ID
     */
    @NotBlank(message = "菜单" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "菜单ID", required = true)
    private String menuId;
}